/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package oop;

/**
 *
 * @author tandaica0612
 */
public class RangeAccessVariableOfInnerClass {
    private String prString = "Private of outer class";
    public String puString = "Public of outer class";
    public void methodtest(String test,final String test2){
        String inmethod = "Variable in method";
        final String inmethod2 = "Variable in method";
        class InnerClass{
            String intest = "Private of innerclass";
            public void methodtest2(){
                System.out.println(RangeAccessVariableOfInnerClass.this.prString);
                System.out.println(RangeAccessVariableOfInnerClass.this.puString);
                //System.out.println(test);//Ko truy cap. duoc. neu' ko phai? la` final
                System.out.println(test2);
                //System.out.println(inmethod);//Ko truy cap duoc. neu' ko phai? la` final
                System.out.println(inmethod2);
                System.out.println(intest);
            }
        }
        new InnerClass().methodtest2();
    }
    public static void main(String args[]){
        new RangeAccessVariableOfInnerClass().methodtest("Param non final", "Param final");
    }
}
